package com.md.mainpage.interfaces

import com.md.basedpc.base.IBaseView
import com.md.basedpc.base.IPresenter
import com.md.network.api.Category

open interface MainCategoriesContract {

    interface View : IBaseView {
        fun showCategoriesList(categories: List<Category>)
        fun showSingleCategory(category:Category)
        fun showError(errorMsg: String)
    }

    interface Presenter : IPresenter<View> {
        fun getCategoriesList()
        fun getCategoryInfo(categoryId:Int)
    }
}